package com.chenyue.cm.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lbx
 * @since 2021-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysMenus extends Model<SysMenus> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 父级资源id
     */
    private String pid;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 资源编码
     */
    private String code;

    /**
     * 跳转地址
     */
    private String pageurl;

    /**
     * 临时字段
     */
    private String remark;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 排序号
     */
    private Integer orderNo;

    /**
     * 0 不显示  1 显示
     */
    private Integer showFlag;

    /**
     * 0目录 1 菜单 2 按钮
     */
    private Integer type;

    @TableField(fill = FieldFill.INSERT)
    private String ct;

    private String cb;

    @TableField(fill = FieldFill.UPDATE)
    private String et;

    private String eb;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
